package com.jl.utils;

import com.jl.model.vo.UserVo;

public class UserInfoContext {

    private static ThreadLocal<UserVo> userInfo = new ThreadLocal<UserVo>();

    public UserInfoContext() {
    }

    public static UserVo getUser(){
        return userInfo.get();
    }

    public static void setUser(UserVo user){
        userInfo.set(user);
    }

    public static void remove(){
        userInfo.remove();
    }
}
